import { createApp } from 'vue'
import router from '@/router/index'
import store from './store/index'
import 'nprogress/nprogress.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import 'normalize.css'
import '@/assets/css/index.css'

import App from './App.vue'


const app = createApp(App)
app.use(router)
app.use(store)
// 全局配置国际化的配置。
app.use(ElementPlus, {
    locale: zhCn,
})

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.mount('#app')
